package com.tiger.log.server.service;

import com.tiger.log.common.entity.SysRecordLog;

import java.text.ParseException;
import java.util.List;

/**
 * @InterfaceName SysRecordLogService
 * @Description TODO
 * @Author huxuehao
 **/
public interface SysRecordLogService {
    List<SysRecordLog> getAll();

    SysRecordLog getById(String id);

    List<SysRecordLog> getByBusinessId(String businessId);

    List<SysRecordLog> getByClassify(String classify);
    List<SysRecordLog> getByCode(String code);

    int deleteAll();

    int deleteByIds(List<String> ids);

    int deleteByBusinessIds(List<String> businessIds);

    int deleteByClassifies(List<String> Classifies);

    /* 生成日志 */
    Boolean asyncGenLog(SysRecordLog recordLog);

    /* 获取日志周期,以天为单位 */
    Boolean validDayCycle() throws ParseException;

    /* 执行日志轮转 */
    Boolean doRotate(String tableSuffix) throws ParseException;
}
